import java.util.Scanner;

public class Game {
	public static void main(String[] args) {
		Game game = new Game();
		Person person = null;
		person = game.createPerson(new Person());
		String play = game.play();
		if(play.equals("开始")) {
			Room room = new Room();
			person = room.oneroom(person);
			person = room.uproom(person);
			person = room.tworoom(person);
			person = room.uproom(person);
			person = room.twoandtreeroom(person);
			person = room.threeroom(person);
			person = room.uproom(person);
			person = room.threandfour(person);
			person = room.fourroom(person);
			person = room.uproom(person);
			room.fiveroom(person);
		}
		
	}
	public void showpack(Person person) {
		for(Object it: person.背包) {
			System.out.println(it);
		}
	}
	public String  play() {
		System.out.println();
        System.out.println("欢迎来到【迷宫】");
        System.out.println("【迷宫】是一个简单烧脑刺激的游戏。");
        System.out.println("只有正义之士才能通关哦(输入开始)");
        Scanner in = new Scanner(System.in);
		String choce = in.nextLine();
		return choce;
	}
	public Person createPerson(Person person) {
		person.set着装(1);
		person.set鞋子("普通鞋子");
		person.set战斗力(50);
		person.set能量(50);
		person.set手持短刀("手持短刃");
		return person;
	}
}
